package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.query.album.AlbumInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {
    IPage<AlbumListVo> findUserAlbumPage(@Param("albumListVoPage")IPage<AlbumListVo> albumListVoPage, @Param("albumInfoQuery")AlbumInfoQuery albumInfoQuery);

    /**
     * 更新专辑信息表播放数
     * @param albumId
     * @param albumStatPlay
     * @param count
     */
    void updateTrackStat(@Param("albumId") Long albumId, @Param("albumStatPlay") String albumStatPlay, @Param("count") Integer count);
}
